﻿using Photo.Core.EnumSummary.System;

namespace Photo.Application.System.Dict.Dto
{
    /// <summary>
    /// 数据字典dto
    /// </summary>
    public class DictDto : BaseDto
    {
        /// <summary>
        /// 字典类型
        /// </summary>
        public EnumSysDictType? Type { get; set; }
        public string TypeStr
        {
            get
            {
                return Type?.ToDescription();
            }
        }
        /// <summary>
        /// 字典值
        /// </summary>
        public string Value { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool? IsActive { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int? Sort { get; set; }
        /// <summary>
        /// 字典父级id
        /// </summary>
        public string PId { get; set; }
    }
}
